<?php
$this->breadcrumbs=array(
	'Orders'=>array('index'),
	$model->name=>array('view','id'=>$model->id),
	'Update',
);

$this->menu=array(
	array('label'=>'List Orders', 'url'=>array('index')),
	array('label'=>'Create Orders', 'url'=>array('create')),
	array('label'=>'View Orders', 'url'=>array('view', 'id'=>$model->id)),
	array('label'=>'Manage Orders', 'url'=>array('admin')),
);
?>

<h1>Update Orders <?php echo $model->id; ?></h1>

<?php echo $this->renderPartial('_form', array('model'=>$model,
												'firms'=>$firms,
												'statuses'=>$statuses)); ?>
												
<?php //var_dump($ordersincomeProvider); 
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'ordersoutcome-grid',
	'dataProvider'=>$ordersincomeProvider,
	'columns'=>array(
		'sum',
		'paiddate',
		array(
			'class'=>'CButtonColumn',
			'updateButtonUrl'=>'CHtml::normalizeUrl(array("ordersincome/update","id"=>$data->id))',
			'viewButtonUrl'=>'CHtml::normalizeUrl(array("ordersincome/view","id"=>$data->id))',
			'deleteButtonUrl'=>'CHtml::normalizeUrl(array("ordersincome/delete","id"=>$data->id,"returnUrl"=>Yii::app()->request->requestUri))',
		),
	),
)); ?>